 <h1>Apartment List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Sf guard user</th>
      <th>Name</th>
      <th>Short details</th>
      <th>Address</th>
      <th>City</th>
      <th>Zip</th>
      <th>Bathrooms</th>
      <th>Bedrooms</th>
      <th>Beds</th>
      <th>Max occupancy</th>
      <th>Square meters</th>
      <th>Map</th>
      <th>Full description</th>
      <th>Location</th>
      <th>Sights</th>
      <th>Parking</th>
      <th>Howtogetthere</th>
      <th>Check in options</th>
      <th>Check out options</th>
      <th>Gallery</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($apartman_list as $apartman): ?>
    <tr>
      <td><a href="<?php echo url_for('apartment/show?id='.$apartman->getId()) ?>"><?php echo $apartman->getId() ?></a></td>
      <td><?php echo $apartman->getSfGuardUserId() ?></td>
      <td><?php echo $apartman->getName() ?></td>
      <td><?php echo $apartman->getShortDetails() ?></td>
      <td><?php echo $apartman->getAddress() ?></td>
      <td><?php echo $apartman->getCity() ?></td>
      <td><?php echo $apartman->getZip() ?></td>
      <td><?php echo $apartman->getBathrooms() ?></td>
      <td><?php echo $apartman->getBedrooms() ?></td>
      <td><?php echo $apartman->getBeds() ?></td>
      <td><?php echo $apartman->getMaxOccupancy() ?></td>
      <td><?php echo $apartman->getSquareMeters() ?></td>
      <td><?php echo $apartman->getMap() ?></td>
      <td><?php echo $apartman->getFullDescription() ?></td>
      <td><?php echo $apartman->getLocation() ?></td>
      <td><?php echo $apartman->getSights() ?></td>
      <td><?php echo $apartman->getParking() ?></td>
      <td><?php echo $apartman->getHowtogetthere() ?></td>
      <td><?php echo $apartman->getCheckInOptions() ?></td>
      <td><?php echo $apartman->getCheckOutOptions() ?></td>
      <td><?php echo $apartman->getGalleryId() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('apartment/new') ?>">New</a>
